#encoding: utf-8
module Cpanel::BaseHelper

  def edit_controller_for(action, &block)
    block.call if 'edit' == action
  end

  def language_for(language)

    if language == 1
      text = '简体中文'
    elsif language == 2
      text = "英文"
    elsif language == 3
      text = "繁体中文"
    else
      text = "无"
    end

    text

  end

end
